package com.opages.mvc.adapter.common.condition.annotation;

import com.opages.mvc.adapter.common.condition.OnPropertyCondition;
import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @author daizhong.liu
 * @create 2020-06-15 16:24
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Conditional(OnPropertyCondition.class)
public @interface ConditionalOnProperty {
    /**
     * 属性值
     **/
    String name();
    /**
     * 预测配置文件中的值
     **/
    String havingValue();
}
